function test(...)
	local targ = {...}
	for k, v in pairs {...} do
		print("k=(" .. tostring(k) .. "); v=(" .. tostring(v) .. ")")
		if v == nil then
			print("k=(" .. tostring(k) .. ") is nil")
		end
	end
end

function packed_ice(arg)
	if type(arg) == "table" then
		for k, v in pairs(arg) do
			print(tostring(k), tostring(v))
		end
	else
		print(tostring(arg))
	end
end

test()
print()
test(1, 2)
print()
test(1, nil, 2)
print()
test(nil, 1, 2)
print()
packed_ice("a string wiht a typo")
print()
packed_ice{key="key value", fixed_string="a string without a typo"}
